package pw.goyd.game.logic;

import pw.goyd.protocol.core.Serializer;

/**
 * 广告奖励响应
 * Created by StanWind on 2016/11/4.
 */
public class AdAwardResponse extends Serializer {
    private int state;              //  响应状态 0 成功 1失败
    private int current;            //  当前转盘次数

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    protected void read() {

    }

    @Override
    protected void write() {
        writeByte((byte) state);
        writeByte((byte) current);

    }
}
